package com.hzncc.flowable_diboot.vo.contract;

import com.diboot.core.binding.annotation.BindDict;
import com.diboot.core.binding.annotation.BindField;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamUser;
import com.hzncc.flowable_diboot.entity.SapCustomer;
import com.hzncc.flowable_diboot.entity.contract.ContractProgress;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;


@Getter @Setter @Accessors
public class ContractProgressListVO extends ContractProgress {

    private String orderModel;

    private String machineTools;

    @BindDict(
            type = "contractBusinessModel",
            field = "businessModel"
    )
    private LabelValue businessModelLabel;

    @BindField(
            entity = IamUser.class,
            field = "realname",
            condition = "this.header=id"
    )
    private String headerName;

    @BindField(
            entity = IamUser.class,
            field = "realname",
            condition = "this.signer=id"
    )
    private String signName;

    @BindDict(
            type = "contractStatus",
            field = "contractStatus"
    )
    private LabelValue contractStatusLabel;

    @BindField(
            entity = SapCustomer.class,
            field = "name",
            condition = "this.customerId=id"
    )
    private String customerName;

    @BindField(
            entity = IamUser.class,
            field = "mobilePhone",
            condition = "this.header=id"
    )
    private String headerPhone;

    private String settlementMethodLabel;

}
